package com.lxy.service.impl;

import com.lxy.common.domain.AjaxResult;
import com.lxy.service.CartService;
import org.springframework.stereotype.Service;


@Service
public class CartServiceImpl implements CartService {

    private final String USER_KEY = "cart:user:";
    private final String NAME_KEY = "name";
    private final String PRICE_KEY = "price";
    private final String IMG_kEY = "picurl";


    @Override
    public int addToCart() {

        String key = USER_KEY+"";
        //查询购物车中是否有该商品
        return 0;
    }


}
